Creates and returns a COM object instance.
Syntax
CreateObject("COM ProgID", "ServerName")
Arguments
| Argument | Description |
|---|---|
| COM ProgID | COM ProgID to create an instance for. |
| ServerName | DCOM server to create the instance from. If not specified, the test computer is used. |
Return value
| Value | Description |
|---|---|
| Value | COM object. |
Example
app = CreateObject("Excel.Application")
PrintLn app.Version